<%@ page contentType="text/html; charset=ISO-8859-1" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Sistema de notificaci&oacute;n de Pagos a Proveedores JDE - FCC Construcci&oacute;n de CA, S.A</title>
<style type="text/css">
.textfield
{
	width:120px;
	font-family:Verdana, Geneva, sans-serif;
	font-size:11px;
}
.textfield_no_editable
{
	width:120px;
	font-family:Verdana, Geneva, sans-serif;
	font-size:11px;
	background-color:#DFDFDF;
}
</style>
<!--MENU-->
<link rel="stylesheet" href="/jde/scripts/menu/menu-bar.css" media="screen" type="text/css">
<script type="text/javascript" src="/jde/scripts/menu/menu-for-applications.js"></script>
<link rel="stylesheet" href="/jde/scripts/menu/menu-item.css" media="screen" type="text/css">
<!--DIALOGO-->
<link type="text/css" href="/jde/scripts/ui/base/jquery.ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="/jde/scripts/ui/jquery-1.4.2.js"></script>
<script type="text/javascript" src="/jde/scripts/ui/jquery.bgiframe-2.1.1.js"></script>
<script type="text/javascript" src="/jde/scripts/ui/ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="/jde/scripts/ui/ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="/jde/scripts/ui/ui/jquery.ui.mouse.js"></script>
<script type="text/javascript" src="/jde/scripts/ui/ui/jquery.ui.draggable.js"></script>
<script type="text/javascript" src="/jde/scripts/ui/ui/jquery.ui.position.js"></script>
<script type="text/javascript" src="/jde/scripts/ui/ui/jquery.ui.resizable.js"></script>
<script type="text/javascript" src="/jde/scripts/ui/ui/jquery.ui.dialog.js"></script>
<script language="javascript" type="text/javascript" src="script.js"></script>
</head>
<body style="font-family:Verdana, Geneva, sans-serif; font-size:11px;">
<jsp:useBean id="db" class="db.Conexion" scope="session"/>
<jsp:useBean id="codificador" class="db.CodificadorDecodificador" />
<%
//COMPROBAR CONEXION
if ((db.ObtenerEstadoSQLServer().equals("desconectado"))||(db.ObtenerEstadoSQLServer() == null))
{
	out.write("<script language=\"javascript\" type=\"text/javascript\">"+"\n"+
	"<!--"+"\n"+
	"window.location=\"/jde/Pagos/?sesion_finalizada=ok\""+"\n"+
	"-->"+"\n"+
	"</script>");
}
else
{
	java.sql.Connection conex = db.ObtenerConexionSQLServer();
	if (conex.isClosed() == false)
	{
%>
<jsp:include page="/Pagos/home/top.jsp"/>
<div id="atencion" title="Atenci&oacute;n"></div>
<div id="confirmacion" title="Confirmaci&oacute;n"></div>
<div id="procesando" title="Procesando"></div>
<div style="width:100%;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
	<td width="100%" align="left">DATOS DE LA SESI&Oacute;N (<%=db.ObtenerUsuarioFull()%>, Hora: <span id="reloj"></span>)</td>
</tr>
</table>
</div>
<div id="todo" style="background-image:url(/jde/img/logo_fondo.png); height:250px; background-repeat:no-repeat; background-position:center;">
	<div style="text-align:center; font-weight:bold; background-color:#99ffcc; border:1px solid #666; padding:4px 4px 4px 3px;">CAMBIAR CONTRASE&Ntilde;A DE USUARIO
	</div>
	<div style="margin-bottom:5px; border:1px solid #666; padding:4px 4px 4px 3px; text-align:center;">
	<a href="javascript:Evaluar();" class="menu_top">
	<img src="/jde/img/guardar.png" alt="Guardar" width="24" height="24" border="0" align="absmiddle" />&nbsp;Guardar
	</a>&nbsp;
	<a href="javascript:LimpiarFormulario();" class="menu_top">
	<img src="/jde/img/limpiar.png" alt="Limpiar formulario" width="24" height="24" border="0" align="absmiddle" />&nbsp;Limpiar formulario
	</a>&nbsp;
	<a href="javascript:Cancelar();" class="menu_top">
	<img src="/jde/img/cancelar.png" alt="Cancelar" width="24" height="24" border="0" align="absmiddle" />&nbsp;Cancelar
	</a></div>
	<div id="evaluacion" style="text-align:center;">
	</div>
	<form action="/jde/Pagos/Formularios/CambiarPassword" method="post" id="form1">
        <table border="0" cellspacing="2" cellpadding="0" align="center">
        <tr>
	        <td align="right">Usuario:</td>
        	<td align="left"><b><%=db.ObtenerUsuario()%></b></td>
        </tr>
        <tr>
        	<td align="right">Contrase&ntilde;a actual:</td>
            	<td align="left"><input name="actual" type="password" class="textfield" id="actual" onkeypress="Enter(event);"/></td>
        </tr>
        <tr>
        	<td align="right">Nueva contrase&ntilde;a:</td>
            	<td align="left"><input name="nueva" type="password" class="textfield" id="nueva" onkeypress="Enter(event);"/></td>
        </tr>
        <tr>
        	<td align="right">Repita nueva contrase&ntilde;a:</td>
            	<td align="left"><input name="nueva1" type="password" class="textfield" id="nueva1" onkeypress="Enter(event);"/></td>
        </tr>
        <tr>
        	<td align="right">&nbsp;</td>
            	<td align="left">&nbsp;</td>
        </tr>
        <tr>
        	<td align="left">&nbsp;</td>
            	<td align="left">Nota: Al cambiar la contrase&ntilde;a la sesi&oacute;n finalizar&aacute; de inmediato.</td>
        </tr>
        </table>
      	</form>
</div>
<%
	}
	else
	{
		out.write("<script language=\"javascript\" type=\"text/javascript\">"+"\n"+
		"<!--"+"\n"+
		"window.location=\"/jde/Pagos/?sesion_finalizada=ok\""+"\n"+
		"-->"+"\n"+
		"</script>");
	}
}
%>
</body>
</html>